package org.example.authservice.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.authservice.mapper.SysOperLogMapper;
import org.example.authservice.pojo.OperLog;
import org.example.authservice.service.IOperLogService;
import org.springframework.stereotype.Service;

/**
 * @author 周昊
 * @since 2024/12/16 11：34
 * @version 1.0
 */
@Service
public class IOperLogServiceImpl extends ServiceImpl<SysOperLogMapper, OperLog> implements IOperLogService {

    /**
     * 插入登录日志
     *
     * @param operLog 行为对象
     * @return 插入。成功返回true，否则返回false
     */
    @Override
    public boolean insert(OperLog operLog) {
        return save(operLog);
    }
}
